package de.softcon.mobileoffence.domainmodel;

import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import de.softcon.mobileoffence.persistence.MobileOffenceDatabaseAdapter;

/**
 * Contains information about a user, using the application.
 * @author fmannan
 *
 */
public class User {

	private String username;
	private String password;
	private String mandator;
	
	/**
	 * Creates a new User with the given username and password.
	 */
	public User(String name, String pwd)
	{
		username = name;
		password = pwd;
	}

	/**
	 * Adds a new user to the database. If a user with the given credentials already exists, an exception is thrown.
	 */
	public void addNewUser(String name, String password)
	{
		
	}
	
	public String getUsername() {
		return username;
	}

	public String getPassword() {
		return password;
	}
}
